package com.sh.suhe.utildemos.book.ui;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.util.Log;

import com.sh.suhe.utildemos.BookApplication;
import com.sh.suhe.utildemos.R;
import com.sh.suhe.utildemos.book.Presenter.BookShelfPresenter;
import com.sh.suhe.utildemos.book.base.LoadCallBack;
import com.sh.suhe.utildemos.utils.JsonUtil;
import com.xmread.cn.Ui.entity.BookShelfBean;

public class BookActivity extends AppCompatActivity {

    BookShelfPresenter presenter;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_book);
        presenter = new BookShelfPresenter(new LoadCallBack() {
            @Override
            public void onLoad(Object o) {
                Log.e("BookActivity", JsonUtil.object2Json(o));
//                BookShelfBean bookShelfBean;
            }

            @Override
            public void onLoadFail(String str) {

            }
        }, this);
        presenter.getData();
    }
}